package com.xb.cloud.product.service.business.model.mapper;

import com.xb.cloud.product.service.business.model.ProductSkuPrice;
import com.xb.cloud.product.service.business.model.ProductSkuPriceExample;

import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProductSkuPriceMapper {
    long countByExample(ProductSkuPriceExample example);

    int deleteByExample(ProductSkuPriceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(ProductSkuPrice record);

    int insertSelective(ProductSkuPrice record);

    List<ProductSkuPrice> selectByExample(ProductSkuPriceExample example);

    ProductSkuPrice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") ProductSkuPrice record, @Param("example") ProductSkuPriceExample example);

    int updateByExample(@Param("record") ProductSkuPrice record, @Param("example") ProductSkuPriceExample example);

    int updateByPrimaryKeySelective(ProductSkuPrice record);

    int updateByPrimaryKey(ProductSkuPrice record);

	BigDecimal obtainSkuPrice(Long skuId);
	BigDecimal getSkuPriceBySkuId(Long skuId);
	
}